export default {
    state(){
        return {
            userid:'d',
        }
    },
    getters:{
        getUserId:function (state){
            return state.userid
        }
    },
    mutations:{
        setUserId:function (state,val){
            state.userid=val
        }
    },
    actions:{
        initUser({commit},val){
            commit('setUserId',val)
        }
    },
}